// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTablePartitionCount.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../expr/SQLIntegerExpr.h"

SQLAlterTablePartitionCount::SQLAlterTablePartitionCount()
{
}

// @Override
void SQLAlterTablePartitionCount::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTablePartitionCount)))
  {
    acceptChild(visitor, count);
  }
  visitor->endVisit(SharedObject(SQLAlterTablePartitionCount));
}

SQLIntegerExpr_ptr SQLAlterTablePartitionCount::getCount()
{
  return count;
}

void SQLAlterTablePartitionCount::setCount(SQLIntegerExpr_ptr count)
{
  if (count != nullptr)
  {
    count->setParent(SharedObject(SQLAlterTablePartitionCount));
  }
  this->count = count;
}
